package com.roshan.service;

import java.io.Serializable;
import java.util.List;

import com.roshan.domain.BaseDomain;

@SuppressWarnings( {"unchecked"})
public interface BaseService<T extends BaseDomain, S extends Serializable> {

    List<T> getAll();

    T get(S id);

    boolean exists(S id);

    T save(T entity);

    void remove(S id);
}
